package fr.toto.exceptions;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;

import javax.swing.JOptionPane;

public class ProcessException {

	public ProcessException(Exception e) {

		if ((e instanceof UnsupportedEncodingException)
				|| (e instanceof FileNotFoundException)
				|| (e instanceof URISyntaxException)	
				|| (e instanceof ClassNotFoundException)					
				|| (e instanceof IOException)) {
			JOptionPane.showMessageDialog(null, e.getMessage()
					.toString());
			// TODO Auto-generated catch block
		}
	}

}
